package com.nulldev.util.web.flexibleKit.flexScript.natives;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import com.nulldev.util.data.Arrays.maps.FastMaps;
import com.nulldev.util.scripting.ScriptAPI.baseJS.legacy.lexer.BaseJSObject;
import com.nulldev.util.web.flexibleKit.flexScript.natives.window.NativeNavigatorObject;

public class NativeWindowObject extends BaseJSObject {

	private static Map<String, BaseJSObject> OBJECTS = new ConcurrentHashMap<String, BaseJSObject>();
	static {
		if (OBJECTS.isEmpty()) {
			OBJECTS.put("navigator", new NativeNavigatorObject());
		}
	}

	public NativeWindowObject() {
		super("window", FastMaps.map(OBJECTS));
	}
}
